package jgcp.common;

import java.util.Date;

public class Task {
	private int taskid;
	private String taskfile = "";
	/*
	 * Assign the initial value of a priority that is 100.
	 */
	private int priority = 100;
	private Date deadline;
	private double budget;
	private TaskType type = TaskType.EXE;

	/**
	 * @return the exefile
	 */
	public String getTaskfile() {
		return taskfile;
	}

	/**
	 * @param exefile the exefile to set
	 */
	public void setTaskfile(String exefile) {
		this.taskfile = exefile;
	}
	
	/*
	 * Added by Dongwei Qi.
	 */
	public Date getDeadline(){
		return deadline;
	}
	
	/*
	 * Added by Dongwei Qi.
	 */
	public double getBudget(){
		return budget;
	}
	
	/*
	 * New Added by Dongwei Qi.
	 */
	public void setPriority(int priority){
		this.priority=priority;
	}
	
	/*
	 * New Added by Dongwei Qi.
	 */
	public int getPriority(){
		return priority;
	}
}
